package com.liu.ssm.controller.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liu.ssm.controller.service.ClazzService;
import com.liu.ssm.dao.ClazzDao;
import com.liu.ssm.entity.Clazz;

@Service
public class ClazzServiceimpl implements ClazzService {

	@Autowired
	private ClazzDao clazzdao;
	
	
	
	@Override
	public int add(Clazz clazz) { 
		return clazzdao.add(clazz);
	}

	@Override
	public int edit(Clazz clazz) {	 
		return clazzdao.edit(clazz);
	}

	@Override
	public int delete(String ids) {		 
		return clazzdao.delete(ids);
	}

	@Override
	public List<Clazz> findList(Map<String, Object> queryMap) {	 
		return clazzdao.findList(queryMap);
	}

	@Override
	public List<Clazz> findAll() {	 
		return clazzdao.findAll();
	}

	@Override
	public int getTotal(Map<String, Object> queryMap) {	 
		return clazzdao.getTotal(queryMap);
	}
	
}
